import authConfig from "../auth_config.json";


const auth0Config = {
  domain: authConfig.domain,
  clientId: authConfig.clientId,
  authorizationParams: {
    redirect_uri: window.location.origin + '/callback',
    audience: authConfig.audience,
    scope: authConfig.scope
  },
  useRefreshTokens: authConfig.useRefreshTokens, // 启用刷新令牌功能
  cacheLocation: authConfig.cacheLocation // 可选，指定缓存位置，如 localstorage 或 memory
};

export default auth0Config;
